<?php
require "common.php";
//$id = $_GET['id'];
//$res = mysql_query("delete from `article` where id='$id'");
//echo "<script>alert('删除成功'),location.href='index.php'</script>";
//
class DelController extends CommonController {
    function delArticle(){
        $id = $_GET['id'];
        $res = $this->del("delete  from article where id ='$id'");
        if ($res)
            $this->redirect("删除成功",'index.php');
    }


}
$del = new DelController();
$del->delArticle();

